<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" th:href="@{/static/lib/layui-v2.6.3/css/layui.css}" media="all">
    <script type="text/javascript" th:src="@{/static/lib/layui-v2.6.3/layui.js}"></script>
    <script type="text/javascript" th:src="@{/static/lib/jquery-3.4.1/jquery-3.4.1.min.js}"></script>
    <script type="text/javascript" th:src="@{/static/js/jquery-1.9.1.min.js}"></script>
</head>
<body>
<table class="layui-table">
    <thead>
    <tr>

        <th style="font-weight:bolder;">订单号</th>
        <th style="font-weight:bolder;">用户ID</th>
        <th style="font-weight:bolder;">交易金额</th>
        <th style="font-weight:bolder;">订单状态</th>
        <th style="font-weight:bolder;">交易时间</th>
    </tr>
    </thead>
    <tbody>
					<tr>
						<td th:text="${order.orderNo}"></td>
						<td th:text="${order.userId}"></td>
						<td th:text="${order.orderMoney}"></td>
                        <td th:if="${order.orderStatus eq 1}">待付款</td>
                        <td th:if="${order.orderStatus eq 2}"style="color:#0000FF" >待发货</td>
                        <td th:if="${order.orderStatus eq 3}">已发货</td>
                        <td th:if="${order.orderStatus eq 4}">已签收</td>
                        <td th:if="${order.orderStatus eq 5}" style="color:red">退款中</td>
                        <td th:if="${order.orderStatus eq 6}">已退款</td>
                        <td th:if="${order.orderStatus eq 7}">交易结束</td>
                        <td th:text="${order.createTime}"></td>
					</tr>
    </tbody>
</table>

<table class="layui-table">
    <thead>
    <tr>

        <th style="font-weight:bolder;">商品ID</th>
        <th style="font-weight:bolder;">商品名称</th>
        <th style="font-weight:bolder;">单价</th>
        <th style="font-weight:bolder;">购买数量</th>
        <th style="font-weight:bolder;">总价</th>
    </tr>
    </thead>
    <tbody>
    <span th:each="ds:${list2}">
					<tr>
						<td th:text="${ds.goodsId}"></td>
						<td th:text="${ds.goodsName}"></td>
						<td th:text="${ds.goodsPrice}"></td>
                        <td th:text="${ds.buyCount}"></td>
                        <td th:text="${ds.totalMoney}"></td>
					</tr>
				</span>
    </tbody>
</table>

</body>
</html>
